<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>纵向雪碧图</title>
    <style>
        /* 雪碧图  250 * 3600 =>  9 个人物    */
        .people{
            width:250px;
            height: 400px;
            background: url(sprites/sptites9.png) no-repeat;
            animation: name 1s steps(9) infinite;
        }
        @keyframes name{
            0%{
                background-position: 0 0;
            }
            100%{
                background-position: 0 -3600px;
            }
        }
    </style>
</head>

<body>
    <div class="people"></div>
</body>

</html>